package org.jeecg.common.modules.patient.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.jeecg.common.modules.patient.entity.Patient;
import org.jeecg.common.modules.patient.vo.PatientReqVo;

import java.util.List;

/**
 * @Description: patient
 * @Author: jeecg-boot
 * @Date:   2020-08-19
 * @Version: V1.0
 */
public interface PatientMapper extends BaseMapper<Patient> {

    //查询数据
    List<PatientReqVo> selectPatient(
            @Param("name") String name,
            @Param("nickname") String nickname,
            @Param("mobile") String mobile,
            @Param("dataStart") Integer dataStart,
            @Param("pageSize") Integer pageSize);

    //符合查询条件的总条数
    int getCount(
            @Param("name") String name,
            @Param("nickname") String nickname,
            @Param("mobile") String mobile
    );
}
